<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <meta name="description" content="<%= @description %>" />
    <title><%= @title %> - 南方第三的博客</title>
    <%= stylesheet_link_tag 'bingo' %>
    <%= stylesheet_link_tag 'paginate' %>
    <%= stylesheet_link_tag '/css/unitip.css' %>
    <%= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js' -%>
    <%= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js' -%>
    <%= javascript_include_tag "/js/unitip.js" -%>
    <%= stylesheet_link_tag "/javascripts/syntaxhighlighter/styles/shCore.css" %>
    <%= stylesheet_link_tag '"/javascripts/syntaxhighlighter/styles/shThemeDefault.css"' %>
    <%= javascript_include_tag :all %>
    <%= javascript_include_tag :ckeditor %>
    <%= javascript_include_tag "syntaxhighlighter/scripts/shCore.js" %>
    <%= javascript_include_tag "syntaxhighlighter/scripts/shBrushRuby.js" %>
    <script type="text/javascript">
      SyntaxHighlighter.all();
    </script>
  </head>
  <body onload="fadeOutMsgBox();">
    <div id="container">
      <!--头部-->
      <div id="header">
        <div id="banner">美女于我如浮云</div>
        <div id="nav">
          <div id="nav_link">
	    <%= link_to "首页", "/" %>
	    <%= link_to "开发计划", "/plan" %>
	    <%= link_to "About Me", "/about" %>
          </div>
	  <% if notice %>
	    <div id="nav_msg"><%= notice %></div>
	  <% end %>
          <div id="user_nav">
<%# cache(RecordSweeper::PATH.merge(:action_suffix => 'user_nav')) do %>
	    <% if !current_user %>
	      <%= link_to_remote "注册", :update => 'content', :method => :get, :url => new_user_path %>
	      <%= link_to_remote "登录", :update => 'content', :method => :get, :url => new_user_session_path %>
	    <% else %>
		      欢迎你！<span id="user_wellcome"><%= link_to_unless_current @current_user.try(:username), user_path(current_user) %></span>
	      <%= link_to_unless_current "注销", user_session_path, :method => :delete, :confirm => "你确定要注销吗？" %>
	      <%= link_to_unless_current "管理", :controller => "admin" if is_admin? %>
	    <% end %>
<%# end %>
          </div>
        </div>
      </div>  
